﻿<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:clr="clr-namespace:System;assembly=mscorlib"
    >
    
    
    <!-- Images -->
    <BitmapImage x:Key="splashimage" UriSource="media/images/splashimage.jpg" />
    <BitmapImage x:Key="panaproConsole1_0" UriSource="media/images/panaproConsole1_0.png" />
    <BitmapImage x:Key="closeApplicationOn" UriSource="media/images/closeApplicationOn.png" />
    <BitmapImage x:Key="minimizeButtonOn" UriSource="media/images/minimizeButtonOn.png" />
    <BitmapImage x:Key="maximizeButtonOn" UriSource="media/images/maximizeButtonOn.png" />
    <BitmapImage x:Key="footerBar" UriSource="media/images/footerBar.png" />
    <BitmapImage x:Key="GlobeImage" UriSource="media/images/GlobeImage.png" />
    <BitmapImage x:Key="whiteStripes" UriSource="media/images/whiteStripes.png" />
    <BitmapImage x:Key="backgroundGradient" UriSource="media/images/backgroundGradient.png" />
    <BitmapImage x:Key="scrollUpArrow" UriSource="media/images/scrollUpArrow.png" />
    <BitmapImage x:Key="scrollDownArrow" UriSource="media/images/scrollDownArrow.png" />
    
    
    <BitmapImage x:Key="toolbar_leftside" UriSource="media/images/toolbar_leftside.png" />
    <BitmapImage x:Key="toobar_bg_Stretch" UriSource="media/images/toobar_bg_Stretch.png" />
    <BitmapImage x:Key="toolbar_rightside" UriSource="media/images/toolbar_rightside.png" />
    
    
    <!-- Image Brushes-->
    <ImageBrush x:Key="panaLogoTemplate" ImageSource="media/images/panalogo_template.png"/>
	<ImageBrush x:Key="TitleBar" ImageSource="media/images/window_Titlebar_background.png"/>
	<ImageBrush x:Key="UnderTitleBar" ImageSource="media/images/underTitlebarBackground.png"/>
	<ImageBrush x:Key="ConsoleHeaderBar" ImageSource="media/images/ConsoleHeaderBar.png"/>	
	<ImageBrush x:Key="ButtonBkgd" ImageSource="media/images/ButtonBkgd.jpg"/>
	<ImageBrush x:Key="ConsoleBackground" ImageSource="media/images/LowerConsoleBackground.png"/>
	<ImageBrush x:Key="LabelBorder" ImageSource="media/images/LabelBorder.jpg"/>		
	<ImageBrush x:Key="ButtonInActive" ImageSource="media/images/Application_Button_Image.png"/>
    <ImageBrush x:Key="menuImage" ImageSource="media/images/Menu_backgrnd.jpg"/>
    <ImageBrush x:Key="ButtonActive" ImageSource="media/images/Application_Button_Image_on.png"/>    
    <ImageBrush x:Key="FolderInActive" ImageSource="media/images/foldericon_off.png"/>
    <ImageBrush x:Key="FolderActive" ImageSource="media/images/foldericon_on.png"/>
    <ImageBrush x:Key="MaximizedButton" ImageSource="media/images/maximizeButtonOn_2.png" />
    <ImageBrush x:Key="UnMaximizedButton" ImageSource="media/images/maximizeButtonOn.png" />
	<Style x:Key="ButtonFocusVisual">
		<Setter Property="Control.Template">
			<Setter.Value>
				<ControlTemplate>
					<Border>
						<Rectangle SnapsToDevicePixels="true" Stroke="Black" StrokeDashArray="1 2" StrokeThickness="1" Margin="4"/>
					</Border>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
	<Style x:Key="PluginButton" TargetType="{x:Type Button}">
		<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>				
		<Setter Property="BorderThickness" Value="3"/>
		<Setter Property="HorizontalContentAlignment" Value="Stretch"/>
		<Setter Property="VerticalContentAlignment" Value="Center"/>    
		<Setter Property="Padding" Value="0,0,1,1"/>
    <Setter Property="FontFamily" Value="Verdana"/>
    <Setter Property="FontSize" Value="12"/>
    <Setter Property="FontWeight" Value="Bold"/>   
    <Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<Border Width="Auto" Height="39" Background="{DynamicResource ButtonInActive}">
						<Grid Width="Auto" Height="Auto">
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="40" />
                <ColumnDefinition Width="*" />
              </Grid.ColumnDefinitions>
              <Image Source="media/images/foldericon_off.png" Grid.Column="0" />
              <Grid Grid.Column="1">
                <Grid.RowDefinitions>
                  <RowDefinition Height="10" />
                  <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <ContentPresenter Grid.Row="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" Opacity="0.45" />
              </Grid>
            </Grid>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsKeyboardFocused" Value="true"/>
						<Trigger Property="IsDefaulted" Value="true"/>
						<Trigger Property="IsPressed" Value="true"/>
						<Trigger Property="ToggleButton.IsChecked" Value="true"/>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
  <Style x:Key="PluginActiveButton" TargetType="{x:Type Button}">
		<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
		<Setter Property="Background" Value="{DynamicResource {x:Static SystemColors.ControlBrushKey}}"/>
		<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>				
		<Setter Property="BorderThickness" Value="3"/>
		<Setter Property="HorizontalContentAlignment" Value="Center"/>
		<Setter Property="VerticalContentAlignment" Value="Center"/>    
		<Setter Property="Padding" Value="0,0,1,1"/>
    <Setter Property="FontFamily" Value="Verdana"/>
    <Setter Property="FontSize" Value="12"/>
    <Setter Property="FontWeight" Value="Bold"/>   
    <Setter Property="Template">
			<Setter.Value>
				<ControlTemplate TargetType="{x:Type Button}">
					<Border Width="Auto" Height="39" Background="{DynamicResource ButtonActive}">
						<Grid Width="Auto" Height="Auto">
              <Grid.ColumnDefinitions>
                <ColumnDefinition Width="40" />
                <ColumnDefinition Width="*" />
              </Grid.ColumnDefinitions>
              <Image Source="media/images/foldericon_on.png" Grid.Column="0" />
              <Grid Grid.Column="1">
                <Grid.RowDefinitions>
                  <RowDefinition Height="10" />
                  <RowDefinition Height="*" />
                </Grid.RowDefinitions>
                <ContentPresenter Grid.Row="1" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" Opacity="1" />
              </Grid>
            </Grid>
					</Border>
					<ControlTemplate.Triggers>
						<Trigger Property="IsKeyboardFocused" Value="true"/>
						<Trigger Property="IsDefaulted" Value="true"/>
						<Trigger Property="IsPressed" Value="true"/>
						<Trigger Property="ToggleButton.IsChecked" Value="true"/>
						<Trigger Property="IsEnabled" Value="false">
							<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
						</Trigger>
					</ControlTemplate.Triggers>
				</ControlTemplate>
			</Setter.Value>
		</Setter>
	</Style>
</ResourceDictionary>